home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pButtonName, pBlankMov
-
- on new me, buttonName, castName, theChannel, theStageLoc, descendant
- if objectp(descendant) then
- ancestor = new(script("locking button"), buttonName, castName, theChannel, theStageLoc, descendant)
- else
- ancestor = new(script("locking button"), buttonName, castName, theChannel, theStageLoc, me)
- end if
- pButtonName = buttonName
- pBlankMov = member("Blank2.mov")
- return me
- end
-
- on performFunction me
- global IconList1, audioPath
- sound stop 1
- sound stop 2
- puppetSound(0)
- updateStage()
- repeat with X = 6 to 13
- if not (X = the rollOver) then
- iconObj = getaProp(IconList1, X)
- simulateClickOff(iconObj)
- end if
- end repeat
- xSprite = 15
- set the puppet of sprite xSprite to 1
- set the member of sprite xSprite to pBlankMov
- set the loc of sprite 15 to point(-999, -999)
- updateStage()
- xMember = member(pButtonName & ".window")
- set the member of sprite 15 to xMember
- set the loc of sprite 15 to point(316, 195)
- if member(xMember).type = #bitmap then
- sound playFile 1, audioPath & pButtonName & ".AIF"
- end if
- updateStage()
- end
-
- on performUpFunction me
- sound stop 1
- set the puppet of sprite 15 to 1
- xMember = the member of sprite 15
- if member(xMember).type = #digitalVideo then
- set the member of sprite 15 to pBlankMov
- end if
- set the loc of sprite 15 to point(-999, -999)
- return me
- end
-